package io.renren.modules.oatools.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.SchemaProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;


/**
 * 接口
 *
 * @author xhtang 173101649@qq.com
 * @since 1.0.0 2025-08-25
 */
@Data
@Schema(name = "接口")
public class InvokeDTO implements Serializable {
    private static final long serialVersionUID = 1L;

	@SchemaProperty(name = "")
	private Integer id;

	@SchemaProperty(name = "系统ID")
	private Integer sysId;

	@SchemaProperty(name = "接口名称")
	private String invokeName;

	@SchemaProperty(name = "接口编号")
	private String invokeNumber;

	@SchemaProperty(name = "请求头map类型")
	private String requestHeaders;

	@SchemaProperty(name = "请求头特殊处理（加解密、添加字段、各种特殊处理）执行语法放在发起请求前")
	private String headersGroovy;

	@SchemaProperty(name = "请求参数，用于拼接URL")
	private String requestParams;

	@SchemaProperty(name = "语法处理")
	private String paramsGroovy;

	@SchemaProperty(name = "请求参数")
	private String requestBody;

	@SchemaProperty(name = "处理请数据")
	private String bodyGroovy;

	@SchemaProperty(name = "请求地址")
	private String requestUrl;

	@SchemaProperty(name = "处理OkHttpClient")
	private String requestClientGroovy;

	@SchemaProperty(name = "发起请求前处理数据")
	private String requestBeforeGroovy;

	@SchemaProperty(name = "发起请求后处理")
	private String requestAfterGroovy;

	@SchemaProperty(name = "请求类型")
	private String requestType;

	@SchemaProperty(name = "是否同步请求")
	private Integer isAsyn;

	@SchemaProperty(name = "comments")
	private String comments;

	@SchemaProperty(name = "是否删除")
	private Integer isDel;

	@SchemaProperty(name = "创建时间")
	private Date createDate;

	@SchemaProperty(name = "修改时间")
	private Date updateDate;


}